3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate polylines. See "Polylines" for the definition of a polyline.
You can use the Q3PolyLine_New function to create a new polyline.
TQ3GeometryObject Q3PolyLine_New (
const TQ3PolyLineData *polyLineData);
You can use the Q3PolyLine_Submit function to submit an immediate polyline for drawing, picking, bounding, or writing.
TQ3Status Q3PolyLine_Submit (
const TQ3PolyLineData *polyLineData,
TQ3ViewObject view);
The Q3PolyLine_Submit function submits for drawing, picking, bounding, or writing the immediate polyline whose shape and attribute sets are specified by the polyLineData parameter. The polyline is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3PolyLine_GetData function to get the data that defines a polyline and its attributes.
TQ3Status Q3PolyLine_GetData (
TQ3GeometryObject polyLine,
TQ3PolyLineData *polyLineData);
You can use the Q3PolyLine_SetData function to set the data that defines a polyline and its attributes.
TQ3Status Q3PolyLine_SetData (
TQ3GeometryObject polyLine,
const TQ3PolyLineData *polyLineData);
You can use the Q3PolyLine_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3PolyLine_GetData .
TQ3Status Q3PolyLine_EmptyData (TQ3PolyLineData *polyLineData);
You can use the Q3PolyLine_GetVertexPosition function to get the position of a vertex of a polyline.
TQ3Status Q3PolyLine_GetVertexPosition (
TQ3GeometryObject polyLine,
unsigned long index,
TQ3Point3D *position);
You can use the Q3PolyLine_SetVertexPosition function to set the position of a vertex of a polyline.
TQ3Status Q3PolyLine_SetVertexPosition (
TQ3GeometryObject polyLine,
unsigned long index,
const TQ3Point3D *position);
You can use the Q3PolyLine_GetVertexAttributeSet function to get the attribute set of a vertex of a polyline.
TQ3Status Q3PolyLine_GetVertexAttributeSet (
TQ3GeometryObject polyLine,
unsigned long index,
TQ3AttributeSet *attributeSet);
The Q3PolyLine_GetVertexAttributeSet function returns, in the attributeSet parameter, the set of attributes for the vertex having the index specified by the index parameter in the vertices array of the polyline specified by the polyLine parameter. The reference count of the set is incremented.
You can use the Q3PolyLine_SetVertexAttributeSet function to set the attribute set of a vertex of a polyline.
TQ3Status Q3PolyLine_SetVertexAttributeSet (
TQ3GeometryObject polyLine,
unsigned long index,
TQ3AttributeSet attributeSet);
You can use the Q3PolyLine_GetSegmentAttributeSet function to get the attribute set of a segment of a polyline.
TQ3Status Q3PolyLine_GetSegmentAttributeSet (
TQ3GeometryObject polyLine,
unsigned long index,
TQ3AttributeSet *attributeSet);
The Q3PolyLine_GetSegmentAttributeSet function returns, in the attributeSet parameter, the set of attributes for a segment of a polyline. The segment is defined by the two vertices having indices index and index +1 in the vertices array of the polyline specified by the polyLine parameter. The reference count of the set is incremented.
You can use the Q3PolyLine_SetSegmentAttributeSet function to set the attribute set of a segment of a polyline.
TQ3Status Q3PolyLine_SetSegmentAttributeSet (
TQ3GeometryObject polyLine,
unsigned long index,
TQ3AttributeSet attributeSet);
The Q3PolyLine_SetSegmentAttributeSet function sets the attribute set of a segment of a polyline to the set specified in the attributeSet parameter. The segment is defined by the two vertices having indices index and index +1 in the vertices array of the polyline specified by the polyLine parameter.
Previous | QD3D Book | Overview | Chapter Contents | Next |